package com._21cn.cms.article.entity;

import com._21cn.cms.article.entity.vo.ListArticle;
import com._21cn.cms.site.entity.Column;
import com._21cn.framework.utils.StringUtil;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ColumnArticle extends ListArticle implements Serializable {
    private static final long serialVersionUID = -1L;

    private Integer channelId = 0;
    private Integer columnId = 0;
    private Integer slaveFlag = 0;

    public void setChannelId(Integer channelId) {
        this.channelId = channelId;
    }
    public Integer getChannelId() {
        return this.channelId;
    }

    public void setColumnId(Integer columnId) {
        this.columnId = columnId;
    }
    public Integer getColumnId() {
        return this.columnId;
    }

    public void setSlaveFlag(Integer slaveFlag) {
        this.slaveFlag = slaveFlag;
    }
    public Integer getSlaveFlag() {
        return this.slaveFlag;
    }

    public ColumnArticle initColumnArticle(Column column , Article article ){
        this.columnId = column.getId();
        this.channelId = column.getChannelId();
        article.setColumn(column);
        article.regulateArticleUrl();
        super.initWith(article);
        return this;
    }
}